import axios from './axios'
//查询监测项目
export function getinfoList(params){
    const url = '/ms/api/mon/info/list'
    return axios.get(url,params)
}
//查询树
export function getinfotree(params){
    const url = '/ms/api/mon/info/tree'
    return axios.get(url,params)
}
//添加监测项目
export function addinfo(params){
    const url = '/ms/api/mon/info/add'
    return axios.post(url,params)
}
//编辑监测项目
export function editinfo(params){
    const url = '/ms/api/mon/info/edit'
    return axios.post(url,params)
}
//编辑监测项目
export function delinfo(params){
    const url = '/ms/api/mon/info/del/'
    return axios.post(url + params)
}
//查询测点列表
export function checkpointList(params){
    const url = '/ms/api/mon/point/list'
    return axios.get(url,params)
}
//添加测点
export function addpoint(params){
    const url = '/ms/api/mon/point/add'
    return axios.post(url,params)
}
//编辑测点
export function editpoint(params){
    const url = '/ms/api/mon/point/edit'
    return axios.post(url,params)
}
//删除测点
export function delpoint(params){
    const url = '/ms/api/mon/point/del/'
    return axios.post(url + params)
}
//查询测点硬件数据
export function checkpointLog(params){
    const url = '/ms/api/mon/point/data/log'
    return axios.get(url,params)
}
//查询硬件数据内容字段
export function getdatafield(params){
    const url = '/ms/api/mon/point/data/field'
    return axios.get(url,params)
}
//查询监测类型
export function getmonTypeList(params){
    const url = '/ms/api/mon/monTypeList'
    return axios.get(url,params)
}




